package cn.mjnxin.charge.model.entity;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
/**
 * demo_student:学生
 * create by :clg  2023/8/29
 *
 * @mbg.generated
 */
public class DemoStudent implements Serializable {
    /**
     * 主键
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="主键")
    private String id;

    /**
     * 姓名
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="姓名")
    private String name;

    /**
     * 状态
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="状态")
    private String userStatus;

    /**
     * a
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="a")
    private String a;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(String userStatus) {
        this.userStatus = userStatus == null ? null : userStatus.trim();
    }

    public String getA() {
        return a;
    }

    public void setA(String a) {
        this.a = a == null ? null : a.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", userStatus=").append(userStatus);
        sb.append(", a=").append(a);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DemoStudent other = (DemoStudent) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getUserStatus() == null ? other.getUserStatus() == null : this.getUserStatus().equals(other.getUserStatus()))
            && (this.getA() == null ? other.getA() == null : this.getA().equals(other.getA()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getUserStatus() == null) ? 0 : getUserStatus().hashCode());
        result = prime * result + ((getA() == null) ? 0 : getA().hashCode());
        return result;
    }
}